import { createApp } from "vue";
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import App from "./App.vue";
import router from "./router/index";
import * as Icons from '@element-plus/icons-vue'
import { toLine } from "./utils/index";
import mUI from "./components"
import "./mock"

const app = createApp(App)
// for (const [key, component] of Object.entries(Icons)) {
//   app.component(key, component)
// }

for (let i in Icons) {
    app.component(`el-icon-${toLine(i)}`,(Icons as any)[i])
}

app.use(router);
app.use(ElementPlus).use(mUI)
app.mount("#app");
